9. HTTP Headers

HTTP Headers

HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored.

There are numerous types of HEADERS in HTTP. Some can be used for both requests and responses and others are specific to the message types.

bb654e2ec04e05db75f31e341b8fe7f8.png

There are four kinds of headers context-wise:

Some common header types:
General Headers

2f5a25d937940797b0ece6a415a69d57.png

Request Headers

Response Headers

9f8732dd83db4c770717c08112feaf74.png